package com.biz.model.Hmodel.sys;
// default package

import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.util.Date;


/**
 * UserAccount entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name="wx_user_account")

public class UserAccount implements java.io.Serializable {

	private static final long serialVersionUID = 3370232953147220960L;
	private String id;
     private String userId;
     private Double money ;
     private Double deposit;
     private Double coupon;
     private Integer integral;
     private Integer orderCount = 0;
     private Double orderMoney;
     private Integer experience;
     private String wxGradeId;
     private String lastModify;
     private Date lastModifyTime;


    // Constructors

    /** default constructor */
    public UserAccount() {
    }

    
    /** full constructor */
    public UserAccount(String userId, Double money, Double deposit, Double coupon, Integer integral, Integer orderCount, Double orderMoney, Integer experience, String wxGradeId, String lastModify, Date lastModifyTime) {
        this.userId = userId;
        this.money = money;
        this.deposit = deposit;
        this.coupon = coupon;
        this.integral = integral;
        this.orderCount = orderCount;
        this.orderMoney = orderMoney;
        this.experience = experience;
        this.wxGradeId = wxGradeId;
        this.lastModify = lastModify;
        this.lastModifyTime = lastModifyTime;
    }

   
    // Property accessors
    @GenericGenerator(name="generator", strategy="uuid.hex")@Id @GeneratedValue(generator="generator")
    
    @Column(name="id", unique=true, nullable=false, length=40)

    public String getId() {
        return this.id;
    }
    
    public void setId(String id) {
        this.id = id;
    }
    
    @Column(name="userId", length=40)

    public String getUserId() {
        return this.userId;
    }
    
    public void setUserId(String userId) {
        this.userId = userId;
    }
    
    @Column(name="money", precision=10)

    public Double getMoney() {
        return this.money;
    }
    
    public void setMoney(Double money) {
        this.money = money;
    }
    
    @Column(name="deposit", precision=10)

    public Double getDeposit() {
        return this.deposit;
    }
    
    public void setDeposit(Double deposit) {
        this.deposit = deposit;
    }
    
    @Column(name="coupon", precision=10)

    public Double getCoupon() {
        return this.coupon;
    }
    
    public void setCoupon(Double coupon) {
        this.coupon = coupon;
    }
    
    @Column(name="integral", precision=10)

    public Integer getIntegral() {
        return this.integral;
    }
    
    public void setIntegral(Integer integral) {
        this.integral = integral;
    }
    
    @Column(name="orderCount")

    public Integer getOrderCount() {
        return this.orderCount;
    }
    
    public void setOrderCount(Integer orderCount) {
        this.orderCount = orderCount;
    }
    
    @Column(name="orderMoney", precision=10)

    public Double getOrderMoney() {
        return this.orderMoney;
    }
    
    public void setOrderMoney(Double orderMoney) {
        this.orderMoney = orderMoney;
    }
    
    @Column(name="experience")

    public Integer getExperience() {
        return this.experience;
    }
    
    public void setExperience(Integer experience) {
        this.experience = experience;
    }
    
    @Column(name="wxGradeId")

    public String getWxGradeId() {
        return this.wxGradeId;
    }
    
    public void setWxGradeId(String wxGradeId) {
        this.wxGradeId = wxGradeId;
    }
    
    @Column(name="lastModify", length=50)

    public String getLastModify() {
        return this.lastModify;
    }
    
    public void setLastModify(String lastModify) {
        this.lastModify = lastModify;
    }
    
    @Column(name="lastModifyTime", length=19)

    public Date getLastModifyTime() {
        return this.lastModifyTime;
    }
    
    public void setLastModifyTime(Date lastModifyTime) {
        this.lastModifyTime = lastModifyTime;
    }
   








}